/*
 * @Author: your name
 * @Date: 2021-09-18 09:48:27
 * @LastEditTime: 2021-09-18 10:00:35
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \media_web_client\src\main.js
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElIconModules from '@element-plus/icons'
//全局导入mavonEditor
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
// 统一注册Icon图标


const app = createApp(App)
for (const iconName in ElIconModules) {
    if (Reflect.has(ElIconModules, iconName)) {
      const item = ElIconModules[iconName]
      app.component(iconName, item)
    }
  }
// use
app.use(ElementPlus)
app.use(mavonEditor)
app.use(store)
app.use(router)
app.mount('#app')
